import Layout from '@/layout'

const productRouter = {
  path: '/product',
  component: Layout,
  redirect: '/product/index',
  name: 'product',
  meta: { title: '商品管理', icon: 'platform' },
  children: [{
    path: 'index',
    name: 'productIndex',
    component: () => import('@/views/product/product'),
    meta: { title: '商品列表', icon: 'userManager' }
  }, {
    path: 'category',
    name: 'productCategory',
    component: () => import('@/views/product/category'),
    meta: { title: '商品品类', icon: 'roleManager' }
  }, {
    path: 'tags/:productId',
    name: 'productTags',
    hidden: true,
    component: () => import('@/views/product/tag'),
    meta: { title: '商品标签', icon: 'menuManager', activeMenu: 'productCategory' }
  }]
}
export default productRouter
